package main

import "fmt"

func main() {
	cart := new(ShoppingCart)
	book := Book{price: 20}
	cart.add(book)

	total := cart.calculatePrice()
	fmt.Println("total:", total)
}
